//
//  DLNetWorkDefine.h
//  delongzhitou
//
//  Created by Mr.Wang on 2018/11/22.
//  Copyright © 2018 delongzhitou. All rights reserved.
//

#ifndef DLNetWorkDefine_h
#define DLNetWorkDefine_h


// 切换服务器 0：测试服 1：正式服
#define DistributionService 1

#if DistributionService
#define kAPIBaseString @"https://www.delongra.com"

#else
#define kAPIBaseString @"http://10.0.0.100:8076"

#endif


#define kRequestSuccess(response) (response && [response isKindOfClass:[NSDictionary class]]&&[response objectForKey:@"code"]&&([[response objectForKey:@"code"] intValue]==200 || [[response objectForKey:@"code"] intValue]==0))

#define kShowRequestMsg(errMsg) [[UIApplication sharedApplication].keyWindow makeToast:(errMsg) duration:1 position:CSToastPositionCenter]

/**
 获取短信验证码
 */
#define HTTPGetSMS @"/app/mobile/sendsms.json"

/**
 注册
 */
#define HTTPRegist @"/app/user/registerBypwd.json"

/**
 密码登录
 */
#define HTTPLoginByPassword @"/app/user/loginByPassword.json"

/**
 短信验证码登录
 */
#define HTTPLoginBySmsCode @"/app/user/loginBysmscode.json"

/**
 修改密码
 */
#define HTTPModifyPassword @"/app/user/modifyPwd.json"

/**
 忘记密码
 */
#define HTTPForgetPassword @"/app/user/forgetPwd.json"

/**
 刷新token
 */
#define HTTPRefreshToken @"/app/user/refreshToken.json"

/**
 退出登录
 */
#define HTTPLogout @"/app/user/logout.json"

/**
 首页轮播图
 */
#define HTTPHomeCycleScroll @"/app/timeaboutpic/queryList.json"

/**`
 资讯分类
 */
#define HTTPInformationClassify @"/app/news/getClassifyList.json"

/**
 某一分类下资讯列表
 */
#define HTTPInformationList @"/app/news/getNewsList.json"

/**
 资讯详情
 */
#define HTTPInformationDetail @"/app/news/getNewsInfo.json"

/**
 推荐相似资讯
 */
#define HTTPMoreLikeInformation @"/app/news/moreLikeNews.json"

/**
 资讯搜索
*/
#define HTTPSearchInformation @"/app/news/searchNews.json"

/**
 资讯点赞 查看 收藏
 */
#define HTTPLikeInformation @"/app/news/likeThisNews.json"

/**
 实时短讯
 */
#define HTTPNewInformation @"/app/news/getNewsFlashes.json"

/**
 上传设备信息
 */
#define HTTPDeviceInfo @"/app/deviceinfo/saveDeviceInfo.json"

/**
 获取热搜词
 */
#define HTTPHotWords @"/app/news/getHotWords.json"


/**
 投资组合的购买
 */
#define HTTPUserDoPurchase @"/user/assetinvest/doPurchase.json"

/**
 查询用户是否已做过风险测评
 */
#define HTTPCheckUserIsRiskAssessment @"/app/assessmentlevel/queryByUserid.json"

/**
 获取风险测评的题目和选项
 */
#define HTTPGetRiskQuestion @"/app/assessmentquestion/queryQuestionList.json"

/**
 保存用户选择的风险测评的作答
 */
#define HTTPSaveRiskAnswer @"/app/assessmentresult/getAssessmentResult.json"

/**
 查询客户是否需要调仓
 */
#define HTTPIsUserIntelligentAdjust @"/task/userintelligentadjust/queryIfRequireAdjust.json"

/**
 客户需要调仓
 */
#define HTTPUserNeedIntelligentAdjust @"/task/userintelligentadjust/generatePortfolio.json"

/**
 查询客户当前投资组合
 */
#define HTTPGetUserInvestPortfolio @"/app/percentportfolio/queryInvestmentPortfolio.json"

/**
 查询调仓前后持仓对比数据
 */
#define HTTPUserPortfolioCompare @"/app/investdetail/portfolioAdjustCompare.json"

/**
 查询调仓理由
 */
#define HTTPUserIntelligentAdjustReason @"/app/investmentPortfolioDesc/queryAdjustReason.json"

/**
 查询用户累计收益/持仓收益率
 */
#define HTTPGetUserTotalIncome @"/task/userdailyreturn/queryTotalReturn.json"

/**
 查询用户总资产
 */
#define HTTPGetUserTotalAssets @"/task/usertotalassets/queryUserTotalAssets.json"

/**
 查询用户昨日收益
 */
#define HTTPGetUserYesterdayIncome @"/task/userdailyreturn/queryYesterdayReturn.json"

/**
 查询用户历史每天收益
 */
#define HTTPGetUserEverdayIncome @"/task/userdailyreturn/queryDailyReturn.json"

/**
查询投资组合收益率曲线数据
*/
#define HTTPGetUserInvestChartPies @"/task/portfolioreturnrate/queryTendencyChartData.json"

/**
 查询投资组合的投资明细
 */
#define HTTPGetUserInvestDetail @"/app/investdetail/currentPortfolioDetailList.json"

/**
 查询交易记录/调仓记录
 */
#define HTTPGetUserTradeRecord @"/user/asset/queryTradingRecord.json"

/**
 查询交易记录/调仓记录详情
 */
#define HTTPGetUserTradeRecordDetail @"/user/asset/queryTradingRecordDetail.json"

/**
 查询持仓记录
 */
#define HTTPGetUserHoardSituation @"/user/asset/queryHoardSituation.json"

/**
 保存意反馈
 */
#define HTTPSaveUserHoardSituation @"/app/feedback/save.json"

/**
 查询组合表现
 */
#define HTTPGetUserInvest @"/app/portfolioperformanceuser/queryPortfolioPerformance.json"

/**
 查询组合表现阅读状态更新
 */
#define HTTPUserFachReadingStatus @"/app/portfolioperformanceuser/updateStatus.json"


/**
 获取分享图片接口
 */
#define HTTPGetShareImageWithNewsID @"/tools/createShareImgByNewsId/12138.jpeg?"

/**
 获取图片验证码接口
 */
#define HTTPGetImageVerifyCode @"/app/user/generateImageCode.json"

/**
 校验图片验证码接口
 */
#define HTTPCheckImageVerifyCode @"/app/user/checkImageCode.json"


/**
 咨询详情的url
 */
#define HTTPInfoDetail @"https://www.delongra.com/mobile/news/newsDetail.html?"

/**
 检查手机号是否存在
 */
#define HTTPCheckPhoneNumIsExist @"/app/user/checkMobileExists.json"

/**
 意见反馈
 */
#define HTTPOpinionReport @"/app/feedback/save.json"

/**
 关于我们
 */
#define HTTPAboutUs @"http://www.delongra.com/mobile/abort/abort.html"

/**
 检测APP版本更新
 */
#define HTTPCheckAppUpdateInfo @"/app/versioninfo/checkAppVersion.json"



#endif /* DLNetWorkDefine_h */
